package zhh.tangbao.wechat.vo.order;

import lombok.Data;

/**
 * <p>
 * 专门给微信小程序封装的订单详情类
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/5/4</p>
 */

@Data
public class OrderContentDetailVo {

    private String name;

    private String img;

    private Integer count;

    private Double price;

    private Double totalPrice;

    public OrderContentDetailVo() {
    }

    public OrderContentDetailVo(OrderContentDetailDaoVo vo) {
        this.name = vo.getCommodityName();
        this.img = vo.getCommodityImg();
        this.count = vo.getCommodityEntityCount();
        this.price = vo.getCommodityEntityPrice();
        this.totalPrice = vo.getCommodityContentTotalPrice();
    }
}
